<?php

namespace seecms\region;

use seecms\lib\module\ModuleConfig;
use seecms\region\controller\Region;

class RegionModule extends ModuleConfig
{

    protected $auth = 'seecms';

    protected $name = '中国行政区划';

    protected $description = '中国行政区划表,包含港澳台';

    protected $category = 1;

    public function controller(): array
    {
        return [
            'region' => Region::class
        ];
    }

    public function publish(): ?\seecms\lib\module\ModulePublish
    {
        return new RegionPublish();
    }

    public function lang(): string
    {
        return __DIR__ . '/lang';
    }

    public function view(): string
    {
        return __DIR__ . '/view';
    }
}